<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Insert title here</title>
	<link type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"/>
	<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
</head>

<body>
	<jsp:include page="admin-nav.jsp"></jsp:include>

	<br><br>
	
	<form:form commandName="product">
      <table>
          <tr>
              <td>Name:</td>
              <td><form:input path="name" class="form-control"/></td>
              <td><form:errors path="name" class="error" /></td>
          </tr>
          <tr>
              <td>Price:</td>
              <td><form:input path="price" class="form-control"/></td>
              <td><form:errors path="price" class="error" /></td>
          </tr>
          <tr>
          	  <td><form:hidden path="id" /></td>
              <td colspan="2">
                  <input type="submit" value="Save Product" />
              </td>
          </tr>
      </table>
	</form:form>
</body>
</html>